package Day20;

import java.util.Scanner;
import java.util.Stack;

/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-10-11
 * Time: 8:03
 * To BE A Better Person-2020-3-2
 */
public class TestDemo {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        Stack<Character> stack=new Stack<>();
        String s=sc.next();
        for (int i = 0; i < s.length(); i++) {
            stack.push(s.charAt(i));
        }
        while(!stack.empty()){
            System.out.print(stack.pop());
        }
    }
}
